import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/login/index'
import Head from '@/components/head'
import Tree from '@/components/Tree'
import Top from '@/components/Top'
import MyObject from '@/myObject/index'
import Left from '@/components/Left'
import Projects from '@/components/projects'
import indicators from '@/indicators/index'
import center from '@/center/index'
import lizi from '@/lizi/index'

Vue.use(Router)

export default new Router({
  routes: [
  
    {
      path:'/',
      name:'Login',
      component:Login,
      // meta:{needLogin:false}
      meta:{title:"海天咨询智能品控项目"}
    },
    {
      path:'/head',
      name:'Head',
      component:Head,
      meta:{title:"海天咨询智能品控项目"}
    },
    {
      path:'/Tree',
      name:'Tree',
      component:Tree,
      meta: {
        title: '海天咨询智能品控项目',
        type: 'login'
      }
    },
    {
      path:'/center',
      name:'center',
      component:center,
      meta: {
        title: '海天咨询智能品控项目',
        type: 'login'
      }
    },
    {
      path:'/Top',
      name:'Top',
      component:Top,
      meta:{title:"海天咨询智能品控项目"}
    },
    {
      path:'/Left',
      name:'Left',
      component:Left,
      meta:{title:"海天咨询智能品控项目"}
    },
    {
      path:'/Projects',
      name:'Projects',
      component:Projects,
      meta: {
        title: '海天咨询智能品控项目',
        type: 'login'
      }
    },
    {
      path:'/myObject',
      name:'MyObject',
      component:MyObject,
      meta: {
        title: '海天咨询智能品控项目',
        type: 'login'
      }
      
    },
    {
      path:'/indicators',
      name:'indicators',
      component:indicators,
      // meta:{needLogin:true}
      meta:{title:"海天咨询智能品控项目"}
    },
    {
      path:'/lizi',
      name:'lizi',
      component:lizi,
      meta:{title:"海天咨询智能品控项目"}
    },
  ]
})
